<%@page import="org.apache.struts2.ServletActionContext"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.rj1101.hscrm.demo.model.*" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SystemList Page</title>
<script type="text/javascript">
	function check(){
			var empId = document.getElementById("checkNull").value;
			if(empId == null || empId == ""){
			alert("用户ID不能为空！");
			return false;
			}else{
				return true;
				}
					}
	</script>
</head>

<body>



<form id="pagerForm" method="post" action="system/system_pager_Ass?guid=<%=new Date().getTime() %>" namespace="/">
	<input type="hidden" name="pager.pageNum" value="1" />
	<input type="hidden" name="pager.numPerPage" value="${pager.numPerPage}" />
	<input type="hidden" name="pager.orderField" value="${pager.orderField}" />
	<input type="hidden" name="pager.orderDirection" value="${pager.orderDirection}" />
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="system/system_findByID_Ass.action" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>员工ID：</label>
				<input type="text" name="empId" maxlength="10" class="required"  id="checkNull"/>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit" onclick="return check()">检索</button></div></div></li>
				<li><a class="button" href="<%=basePath%>system/systemListQuery.jsp" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li>
			</ul>
		</div>
	</div>
	</form>
</div>



	<div layoutH="116" id="w_list_print">
	<table class="list" width="98%" targetType="navTab" asc="asc" desc="desc">
		<thead>
<!-- 			<tr>
				<th colspan="2">客户信息</th>
				<th colspan="2">基本信息</th>
				<th colspan="3">资料信息</th>
			</tr> -->
			<tr>
			<th width="70" align="center" orderField="customerId" class="asc">员工ID</th>
				<th width="70" align="center" orderField="cname" class="desc">员工姓名</th>
				<th width="50" align="center" >性别</th>
				<th width="150" align="center" >身份证</th>
				<th width="70" align="center">职位</th>
				<th width="70" align="center" >专业</th>
				<th width="50" align="center" >家庭住址</th>
				<th width="100" align="center" >用户分配</th>
			</tr>
		</thead>
		<tbody>
			
			<s:iterator  id="list" value="empList" >
			
			<tr target="sid_user" rel="<s:property value="#list.empId"/>">
				<th width="70" align="center"><s:property value="#list.empId"/></th>
				<th width="70" align="center"><s:property value="#list.empName" /></th>
 				<th width="50" align="center"><s:property value="#list.empGender" /></th>
 				<th width="150" align="center" ><s:property value="#list.empCardId"/></th>
				<th width="70" align="center"><s:property value="#list.position" /></th>
				<th width="50" align="center"><s:property value="#list.empAddr" /></th>
				<th width="100" align="center"><s:property value="#list.empDepName" /></th>
				<th align="center">
				<a href="<%=basePath %>system/systemAssPwd.jsp?empId=<s:property value="#list.empId"/>" 
							width="600" height="480"  target="dialog" rel="dlg_page8">分配用户</a>
				</th>
				</tr>
				</s:iterator>

		</tbody>
	</table>
	</div>
	
	<div class="panelBar" >
		<div class="pages">
			<span>显示</span>
			<select name="numPerPage" 
				onchange="javascript:dwzPageBreak({data:{numPerPage:this.value}})">
				<option value="10" selected="selected">10</option>
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select>
			<span>条，共<s:property value="pager.totalCount"/>条</span>
		</div>
		<s:if test="pager.numPerPage!=''">
			<script type="text/javascript">
			setNumPerPage({numPerPage:<s:property value="pager.numPerPage"/>});
			</script>
		</s:if>
		<div class="pagination" targetType="navTab" 
			totalCount=<s:property value="pager.totalCount"/> 
			numPerPage="<s:property value="pager.numPerPage"/>" 
			pageNumShown="<s:property value="pager.pageNumShown"/>" 
			currentPage="<s:property value="pager.currentPage"/>">
		</div>

	</div>
</div>